package com.lanqiao.guimei.vo;


public class Product {

    private String prodNo;
    private Integer ctgrId;
    private Integer venId;
    private Integer stkId;
    private String prodName;
    private Double price;
    private String type;


    private String descr;
    private String image;
    private Integer remark;
    private Category category;
    private Vendor vendor;
    private Stock stock;
    private Double realPrice;

    private  Integer salerId;//售商品表里的卖家ID
    private  String guimeiUsers;//用户表里的名字


    public Product() {
    }

    public Product(String prodNo) {
        this.prodNo = prodNo;
    }

    public Product(String prodNo, Integer ctgrId, Integer venId, Integer stkId, String prodName, Double price, String type, String descr, String image,Integer remark) {
        this.prodNo = prodNo;
        this.ctgrId = ctgrId;
        this.venId = venId;
        this.stkId = stkId;
        this.prodName = prodName;
        this.price = price;
        this.type = type;
        this.descr = descr;
        this.image = image;
        this.remark = remark;
    }


    public Product(String prodNo, Integer ctgrId, Integer venId, Integer stkId, String prodName, Double price, String type, String descr, String image,Integer remark, Category category, Vendor vendor, Stock stock, Integer salerId, String guimeiUsers) {
        this.prodNo = prodNo;
        this.ctgrId = ctgrId;
        this.venId = venId;
        this.stkId = stkId;
        this.prodName = prodName;
        this.price = price;
        this.type = type;
        this.descr = descr;
        this.image = image;
        this.remark = remark;
        this.category = category;
        this.vendor = vendor;
        this.stock = stock;
        this.salerId = salerId;
        this.guimeiUsers = guimeiUsers;
    }

    public Double getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(Double realPrice) {
        this.realPrice = realPrice;
    }
    public Integer getSalerId() {
        return salerId;
    }

    public void setSalerId(Integer salerId) {
        this.salerId = salerId;
    }

    public String getGuimeiUsers() {
        return guimeiUsers;
    }

    public void setGuimeiUsers(String guimeiUsers) {
        this.guimeiUsers = guimeiUsers;
    }

    public String getProdNo() {
        return prodNo;
    }

    public void setProdNo(String prodNo) {
        this.prodNo = prodNo;
    }


    public Integer getCtgrId() {
        return ctgrId;
    }

    public void setCtgrId(Integer ctgrId) {
        this.ctgrId = ctgrId;
    }

    public Integer getVenId() {
        return venId;
    }

    public void setVenId(Integer venId) {
        this.venId = venId;
    }

    public Integer getStkId() {
        return stkId;
    }

    public void setStkId(Integer stkId) {
        this.stkId = stkId;
    }

    public String getProdName() {
        return prodName;
    }

    public void setProdName(String prodName) {
        this.prodName = prodName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }


    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public Vendor getVendor() {
        return vendor;
    }

    public void setVendor(Vendor vendor) {
        this.vendor = vendor;
    }

    public Stock getStock() {
        return stock;
    }

    public void setStock(Stock stock) {
        this.stock = stock;
    }

    public Integer getRemark() {
        return remark;
    }

    public void setRemark(Integer remark) {
        this.remark = remark;
    }

    /*@Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Product{");
        sb.append("prodNo='").append(prodNo).append('\'');
        sb.append(", ctgrId='").append(ctgrId).append('\'');
        sb.append(", venId='").append(venId).append('\'');
        sb.append(", stkId='").append(stkId).append('\'');
        sb.append(", prodName='").append(prodName).append('\'');
        sb.append(", price='").append(price).append('\'');
        sb.append(", type='").append(type).append('\'');
        sb.append(", descr='").append(descr).append('\'');
        sb.append(", image='").append(image).append('\'');
        sb.append(", salerId='").append(salerId).append('\'');
        sb.append(", guimeiUsers='").append(guimeiUsers).append('\'');
        sb.append('}');
        return sb.toString();
    }*/

    @Override
    public String toString() {
        return "Product{" +
                "prodNo='" + prodNo + '\'' +
                ", ctgrId=" + ctgrId +
                ", venId=" + venId +
                ", stkId=" + stkId +
                ", prodName='" + prodName + '\'' +
                ", price=" + price +
                ", type='" + type + '\'' +
                ", descr='" + descr + '\'' +
                ", image='" + image + '\'' +
                ", remark=" + remark +
                ", category=" + category +
                ", vendor=" + vendor +
                ", stock=" + stock +
                ", realPrice=" + realPrice +
                ", salerId=" + salerId +
                ", guimeiUsers='" + guimeiUsers + '\'' +
                '}';
    }
}

